package com.jpx.jxcbiz.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;




import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Mht
 * @since 2020-02-24
 */
@Data
//@Accessors(chain = true)
public class TGoods extends Model<TGoods> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String code;

    private Integer inventoryQuantity;

    private Integer minNum;

    private String model;

    private String name;

    private String producer;

    private Float purchasingPrice;

    private String remarks;

    private Float sellingPrice;

    private String unit;

    private Integer typeId;

    private Integer state;

    private Float lastPurchasingPrice;
    /**
     * t_goods_type 商品类型Id
     */
//    private String bname;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
